package com.example.demo.entity.request.supplier;

import com.example.demo.common.entity.request.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 供应商请求对象.
 *
 * @author Mei Ruoxiao
 * @since 2020/9/16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel("供应商请求对象")
public class SupplierRequest extends BaseRequest {

    @NotEmpty(message = "名称不能为空")
    @Length(message = "名称不能超过{max}个字符", max = 50)
    @ApiModelProperty(value = "企业名称", example = "鸿达安视")
    private String name;

    @NotEmpty(message = "名称不能为空")
    @Length(message = "名称不能超过{max}个字符", max = 50)
    @ApiModelProperty(value = "联系人", example = "张国强")
    private String boss;
    @NotNull(message = "电话号码不能为空")
    @ApiModelProperty(value = "联系人电话", example = "18523659852")
    private String tel;

    @ApiModelProperty(value = "收货地址", example = "锦江区东门大街")
    private String address;
    @NotNull
    @ApiModelProperty(value = "公账账户", example = "98523641252285411")
    private String account;

    @ApiModelProperty(value = "开户行", example = "中国银行")
    private String bank;
    @NotNull
    @ApiModelProperty(value = "税号", example = "35852841258844")
    private String taxId;

    @ApiModelProperty(value = "税务地址", example = "苏坡街道")
    private String taxAddress;

    @ApiModelProperty(value = "税务电话", example = "18236955236")
    private String taxTel;
}
